 package nz.ac.massey.xTarsier.structure;
import java.util.ArrayList;
/**
 * This is The folder object that represents foplders on the system
 * It has a file list and a folder list
 * @author gdjenson
 *
 */ 
public class Folder implements SystemFile{

	ArrayList<SystemFile> files = new ArrayList<SystemFile>();
	
	String name;
	
	String absolutePath;
	
	public boolean isFile()
	{
		return false;
	}
	
	public void addSystemFile(SystemFile f)
	{
		files.add(f);
	}
	
	public String getAbsolutePath() {
		return absolutePath;
	}

	public void setAbsolutePath(String absolutePath) {
		this.absolutePath = absolutePath;
	}

	public ArrayList<SystemFile> getFiles() {
		return files;
	}

	public void setFiles(ArrayList<SystemFile> files) {
		this.files = files;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Folder(String path, String name) {
		super();
		// TODO Auto-generated constructor stub
		absolutePath = path;
		this.name = name;
	}

}
